<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>移动双录文件管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/mobile/mobileFile/">移动双录文件列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="mobileFile" action="${ctx}/mobile/mobileFile/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>文件名称：</label>
				<form:input path="name" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>文件格式：</label>
				<form:input path="format" htmlEscape="false" maxlength="16" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>用户名</th>
				<th>机构号</th>
				<th>投保单号</th>
				<th>文件名称</th>
				<th>文件格式</th>
				<th>文件存放路径</th>

				<shiro:hasPermission name="mobile:mobileFile:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="mobileFile">
			<tr>
				<td>
						${mobileFile.userName}
				</td>
				<td>
						<%--${mobileFile.org}--%>
						${fns:getDictLabel("9f28cacfb6e54c2798587b00bbbffaa5","org" ,"中国太平洋人寿保险股份有限公司济南市历城支公司仲宫营销服务部" )}
				</td>
				<td>
						${mobileFile.insurance}
				</td>

				<td>
						${mobileFile.name}
				</td>
				<td>
						${mobileFile.format}
				</td>
				<td>
					${mobileFile.urlLocal}
				</td>


				<shiro:hasPermission name="mobile:mobileFile:edit"><td>

					<c:choose>
						<c:when test="${mobileFile.urlDecrypt!=null&&mobileFile.urlDecrypt!=''}">
							<a style="color: grey; cursor: pointer; text-decoration: none;">解密</a>

						</c:when>
						<c:otherwise>
							<a  href="${ctx}/mobile/mobileFile/decode?id=${mobileFile.id}">解密</a>
						</c:otherwise>
					</c:choose>
					<c:choose>
						<c:when test="${mobileFile.urlDecrypt!=null&&mobileFile.urlDecrypt!=''}">
							<a href="${ctx}/mobile/mobileFile/play?id=${mobileFile.id}&name=${mobileFile.name}">播放</a>
						</c:when>
						<c:otherwise>
							<a style="color: grey; cursor: pointer; text-decoration: none;">播放</a>
						</c:otherwise>
					</c:choose>
					<a href="${ctx}/mobile/mobileFile/delete?id=${mobileFile.id}" onclick="return confirmx('确认要删除该移动双录文件吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>